<link rel="stylesheet" type="text/css" href="${base.contextPath}/static/resources/layui/css/layui.css" media="all"/>
<link rel="stylesheet" href="${base.contextPath}/static/resources/font-awesome/css/font-awesome.min.css" media="all"/>
<link rel="stylesheet" href="${base.contextPath}/static/resources/css/frameView.css" />
<link rel="stylesheet" href="${base.contextPath}/static/resources/css/contentView.css" />

<script type="text/javascript" src="${base.contextPath}/static/resources/js/jquery.min.js"></script>
<script type="text/javascript" src="${base.contextPath}/static/resources/layui/layui.js"></script>

<style>
.openPage {margin: 10px;}
.pageBox {bottom: -60px;}
</style>

<script type="text/javascript">
layui.config({
	base : '${base.contextPath}/static/resources/layui/lay/modules/'
}).use('laydate');
layui.config({
	base : '${base.contextPath}/static/resources/layui/lay/modules/'
}).use('form');

// 关闭子弹出层
function closeSubWin(){
	parent.layer.closeAll();
}

// 子弹出层执行任务
function excuteTask(ajaxUrl, data) {
	var index = layer.load(2);
	$.ajax({
		url : ajaxUrl,
		type : 'POST',
		async : true,
		dataType : 'json',
		data : data,
		complete : function() {
			layer.close(index);
		},
		success : function(data) {
			layer.msg(data.message, {
				icon : 1,
				time : 1000
			}, function() {
				parent.layer.closeAll();
			});
		},
		error : function() {
			layer.msg('任务执行异常！', {
				icon : 5,
				time : 3000
			});
		}
	});
}
</script>